import { MigrationInterface, QueryRunner } from "typeorm";

export class UpdateTable2001729128803137 implements MigrationInterface {
    name = 'UpdateTable2001729128803137'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE \`tool_storage\` ADD \`ossPath\` varchar(255) NULL`);
        await queryRunner.query(`ALTER TABLE \`tool_storage\` ADD \`ossFullPath\` varchar(255) NULL`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE \`tool_storage\` DROP COLUMN \`ossFullPath\``);
        await queryRunner.query(`ALTER TABLE \`tool_storage\` DROP COLUMN \`ossPath\``);
    }
}
